#include "Circle.h"
#include "Point.h"
void Circle::set_r(double r)
{
	m_r = r;
}
void Circle::set_XY(int x, int y)
{
	x0 = x;
	y0 = y;
}
int Circle::judgePoint(Point &p)
{
	int dd = (p.get_x() - x0) * (p.get_x() - x0) + (p.get_y() - y0) * (p.get_y() - y0);
	if (dd < m_r * m_r)
		return 1;
	else if (dd == m_r * m_r)
		return 2;
	else
		return 0;
}